import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/Home.vue'
import Classify from "../components/Classify.vue"
import ShopCart from "../components/ShopCart.vue"
import MePage from '../components/MePage.vue'
import Register from "../components/Register.vue"
import Detaile from "../components/Detaile.vue"
import search from "../components/Search.vue"



Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    component: Home,
  },
  {
    path: "/detaile",
    component: Detaile,
  },
  {
    path: "/classify",
    component: Classify
  },

  {
    path: "/shopCart",
    component: ShopCart
  },
  {
    path: "/mepage",
    component: MePage,
    meta:{
      isTrue:false
    }
  },
  {
    path: "/register",
    component: Register
  },
  {
    path: "/search",
    component: search
  }
]

const router = new VueRouter({
  routes,
  base:"/dist/index.html"
})


export default router
